<?php

/**
 * This is the model class for table "whm_account_functions".
 *
 * The followings are the available columns in table 'whm_account_functions':
 * @property integer $id_account_functions
 * @property integer $id_account
 * @property integer $accountsummary
 * @property integer $adddns
 * @property integer $addip
 * @property integer $addpkg
 * @property integer $addzonerecord
 * @property integer $applist
 * @property integer $changepackage
 * @property integer $cpanel
 * @property integer $createacct
 * @property integer $delip
 * @property integer $dumpzone
 * @property integer $editpkg
 * @property integer $editzonerecord
 * @property integer $fetchsslinfo
 * @property integer $generatessl
 * @property integer $gethostname
 * @property integer $getlanglist
 * @property integer $getzonerecord
 * @property integer $installssl
 * @property integer $killdns
 * @property integer $killpkg
 * @property integer $limitbw
 * @property integer $listaccts
 * @property integer $listacls
 * @property integer $listcrts
 * @property integer $listips
 * @property integer $listpkgs
 * @property integer $listresellers
 * @property integer $listsuspended
 * @property integer $listzones
 * @property integer $loadavg
 * @property integer $lookupnsip
 * @property integer $modifyacct
 * @property integer $myprivs
 * @property integer $nvget
 * @property integer $nvset
 * @property integer $passwd
 * @property integer $reboot
 * @property integer $removeacct
 * @property integer $resellerstats
 * @property integer $restartservice
 * @property integer $saveacllist
 * @property integer $setacls
 * @property integer $sethostname
 * @property integer $setresellerips
 * @property integer $setresellerlimits
 * @property integer $setresellermainip
 * @property integer $setresellerpackagelimit
 * @property integer $setresolvers
 * @property integer $showbw
 * @property integer $suspendacct
 * @property integer $suspendreseller
 * @property integer $terminatereseller
 * @property integer $unsetupreseller
 * @property integer $unsuspendacct
 * @property integer $version
 */
class WhmAccountFunctions extends CActiveRecord
{
	/**
	 * Returns the static model of the specified AR class.
	 * @param string $className active record class name.
	 * @return WhmAccountFunctions the static model class
	 */
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}

	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'whm_account_functions';
	}

	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		// NOTE: you should only define rules for those attributes that
		// will receive user inputs.
		return array(
			array('id_account_functions, id_account, accountsummary, adddns, addip, addpkg, addzonerecord, applist, changepackage, cpanel, createacct, delip, dumpzone, editpkg, editzonerecord, fetchsslinfo, generatessl, gethostname, getlanglist, getzonerecord, installssl, killdns, killpkg, limitbw, listaccts, listacls, listcrts, listips, listpkgs, listresellers, listsuspended, listzones, loadavg, lookupnsip, modifyacct, myprivs, nvget, nvset, passwd, reboot, removeacct, resellerstats, restartservice, saveacllist, setacls, sethostname, setresellerips, setresellerlimits, setresellermainip, setresellerpackagelimit, setresolvers, showbw, suspendacct, suspendreseller, terminatereseller, unsetupreseller, unsuspendacct, version', 'numerical', 'integerOnly'=>true),
			// The following rule is used by search().
			// Please remove those attributes that should not be searched.
			array('id_account_functions, id_account, accountsummary, adddns, addip, addpkg, addzonerecord, applist, changepackage, cpanel, createacct, delip, dumpzone, editpkg, editzonerecord, fetchsslinfo, generatessl, gethostname, getlanglist, getzonerecord, installssl, killdns, killpkg, limitbw, listaccts, listacls, listcrts, listips, listpkgs, listresellers, listsuspended, listzones, loadavg, lookupnsip, modifyacct, myprivs, nvget, nvset, passwd, reboot, removeacct, resellerstats, restartservice, saveacllist, setacls, sethostname, setresellerips, setresellerlimits, setresellermainip, setresellerpackagelimit, setresolvers, showbw, suspendacct, suspendreseller, terminatereseller, unsetupreseller, unsuspendacct, version', 'safe', 'on'=>'search'),
		);
	}

	/**
	 * @return array relational rules.
	 */
	public function relations()
	{
		// NOTE: you may need to adjust the relation name and the related
		// class name for the relations automatically generated below.
		return array(
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'id_account_functions' => 'Id Account Functions',
			'id_account' => 'Id Account',
			'accountsummary' => 'Accountsummary',
			'adddns' => 'Adddns',
			'addip' => 'Addip',
			'addpkg' => 'Addpkg',
			'addzonerecord' => 'Addzonerecord',
			'applist' => 'Applist',
			'changepackage' => 'Changepackage',
			'cpanel' => 'Cpanel',
			'createacct' => 'Createacct',
			'delip' => 'Delip',
			'dumpzone' => 'Dumpzone',
			'editpkg' => 'Editpkg',
			'editzonerecord' => 'Editzonerecord',
			'fetchsslinfo' => 'Fetchsslinfo',
			'generatessl' => 'Generatessl',
			'gethostname' => 'Gethostname',
			'getlanglist' => 'Getlanglist',
			'getzonerecord' => 'Getzonerecord',
			'installssl' => 'Installssl',
			'killdns' => 'Killdns',
			'killpkg' => 'Killpkg',
			'limitbw' => 'Limitbw',
			'listaccts' => 'Listaccts',
			'listacls' => 'Listacls',
			'listcrts' => 'Listcrts',
			'listips' => 'Listips',
			'listpkgs' => 'Listpkgs',
			'listresellers' => 'Listresellers',
			'listsuspended' => 'Listsuspended',
			'listzones' => 'Listzones',
			'loadavg' => 'Loadavg',
			'lookupnsip' => 'Lookupnsip',
			'modifyacct' => 'Modifyacct',
			'myprivs' => 'Myprivs',
			'nvget' => 'Nvget',
			'nvset' => 'Nvset',
			'passwd' => 'Passwd',
			'reboot' => 'Reboot',
			'removeacct' => 'Removeacct',
			'resellerstats' => 'Resellerstats',
			'restartservice' => 'Restartservice',
			'saveacllist' => 'Saveacllist',
			'setacls' => 'Setacls',
			'sethostname' => 'Sethostname',
			'setresellerips' => 'Setresellerips',
			'setresellerlimits' => 'Setresellerlimits',
			'setresellermainip' => 'Setresellermainip',
			'setresellerpackagelimit' => 'Setresellerpackagelimit',
			'setresolvers' => 'Setresolvers',
			'showbw' => 'Showbw',
			'suspendacct' => 'Suspendacct',
			'suspendreseller' => 'Suspendreseller',
			'terminatereseller' => 'Terminatereseller',
			'unsetupreseller' => 'Unsetupreseller',
			'unsuspendacct' => 'Unsuspendacct',
			'version' => 'Version',
		);
	}

	/**
	 * Retrieves a list of models based on the current search/filter conditions.
	 * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions.
	 */
	public function search()
	{
		// Warning: Please modify the following code to remove attributes that
		// should not be searched.

		$criteria=new CDbCriteria;

		$criteria->compare('id_account_functions',$this->id_account_functions);
		$criteria->compare('id_account',$this->id_account);
		$criteria->compare('accountsummary',$this->accountsummary);
		$criteria->compare('adddns',$this->adddns);
		$criteria->compare('addip',$this->addip);
		$criteria->compare('addpkg',$this->addpkg);
		$criteria->compare('addzonerecord',$this->addzonerecord);
		$criteria->compare('applist',$this->applist);
		$criteria->compare('changepackage',$this->changepackage);
		$criteria->compare('cpanel',$this->cpanel);
		$criteria->compare('createacct',$this->createacct);
		$criteria->compare('delip',$this->delip);
		$criteria->compare('dumpzone',$this->dumpzone);
		$criteria->compare('editpkg',$this->editpkg);
		$criteria->compare('editzonerecord',$this->editzonerecord);
		$criteria->compare('fetchsslinfo',$this->fetchsslinfo);
		$criteria->compare('generatessl',$this->generatessl);
		$criteria->compare('gethostname',$this->gethostname);
		$criteria->compare('getlanglist',$this->getlanglist);
		$criteria->compare('getzonerecord',$this->getzonerecord);
		$criteria->compare('installssl',$this->installssl);
		$criteria->compare('killdns',$this->killdns);
		$criteria->compare('killpkg',$this->killpkg);
		$criteria->compare('limitbw',$this->limitbw);
		$criteria->compare('listaccts',$this->listaccts);
		$criteria->compare('listacls',$this->listacls);
		$criteria->compare('listcrts',$this->listcrts);
		$criteria->compare('listips',$this->listips);
		$criteria->compare('listpkgs',$this->listpkgs);
		$criteria->compare('listresellers',$this->listresellers);
		$criteria->compare('listsuspended',$this->listsuspended);
		$criteria->compare('listzones',$this->listzones);
		$criteria->compare('loadavg',$this->loadavg);
		$criteria->compare('lookupnsip',$this->lookupnsip);
		$criteria->compare('modifyacct',$this->modifyacct);
		$criteria->compare('myprivs',$this->myprivs);
		$criteria->compare('nvget',$this->nvget);
		$criteria->compare('nvset',$this->nvset);
		$criteria->compare('passwd',$this->passwd);
		$criteria->compare('reboot',$this->reboot);
		$criteria->compare('removeacct',$this->removeacct);
		$criteria->compare('resellerstats',$this->resellerstats);
		$criteria->compare('restartservice',$this->restartservice);
		$criteria->compare('saveacllist',$this->saveacllist);
		$criteria->compare('setacls',$this->setacls);
		$criteria->compare('sethostname',$this->sethostname);
		$criteria->compare('setresellerips',$this->setresellerips);
		$criteria->compare('setresellerlimits',$this->setresellerlimits);
		$criteria->compare('setresellermainip',$this->setresellermainip);
		$criteria->compare('setresellerpackagelimit',$this->setresellerpackagelimit);
		$criteria->compare('setresolvers',$this->setresolvers);
		$criteria->compare('showbw',$this->showbw);
		$criteria->compare('suspendacct',$this->suspendacct);
		$criteria->compare('suspendreseller',$this->suspendreseller);
		$criteria->compare('terminatereseller',$this->terminatereseller);
		$criteria->compare('unsetupreseller',$this->unsetupreseller);
		$criteria->compare('unsuspendacct',$this->unsuspendacct);
		$criteria->compare('version',$this->version);

		return new CActiveDataProvider($this, array(
			'criteria'=>$criteria,
		));
	}
}